home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 4.8 KB | 210 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: ValueNS.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODValueNameSpace_xh
- #define SOM_ODValueNameSpace_xh
-
- class ODValueNameSpace;
-
- #define ODValueNameSpace_MajorVersion 1
- #define ODValueNameSpace_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODNameSpace_xh
- #include <NamSpac.xh>
- #endif
-
- #ifndef ODValueNameSpace_API
- #define ODValueNameSpace_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODNameSpace;
- class ODStorageUnitView;
- class ODValueNameSpace;
- class ODValueIterator;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODValueNameSpaceCClassData ODValueNameSpaceClassData
- #define ODValueNameSpaceNewClass(major,minor) somNewVersionedClassReference(ODValueNameSpace,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODValueNameSpaceMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODValueNameSpace class object, and the methods it introduces. */
- SOMEXTERN struct ODValueNameSpaceClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken Register;
- somMToken GetEntry;
- somMToken CreateIterator;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- } SOMDLINK ODValueNameSpaceClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODValueNameSpace_Class_Source) && !defined(SOM_Module_valuens_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODValueNameSpaceClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODValueNameSpace Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODValueNameSpace_Register)(ODValueNameSpace *somSelf, Environment *ev,
- ODISOStr key,
- ODByteArray* value);
- typedef ODBoolean (* SOMLINK somTD_ODValueNameSpace_GetEntry)(ODValueNameSpace *somSelf, Environment *ev,
- ODISOStr key,
- ODByteArray* value);
- typedef ODValueIterator* (* SOMLINK somTD_ODValueNameSpace_CreateIterator)(ODValueNameSpace *somSelf, Environment *ev);
- }
-
- #endif /* ODValueNameSpace_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODValueNameSpace
- */
- class ODValueNameSpace : public ODNameSpace
- {
- public:
-
- // ODValueNameSpace::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODValueNameSpace, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODValueNameSpace);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODValueNameSpace);
- #endif
- }
-
- // ODValueNameSpace::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: Register */
- void Register(Environment *ev,
- ODISOStr key,
- ODByteArray* value)
- {
- SOM_ResolveD(this,ODValueNameSpace,ODValueNameSpace,Register)
- (this,ev,key,value);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetEntry */
- ODBoolean GetEntry(Environment *ev,
- ODISOStr key,
- ODByteArray* value)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODValueNameSpace,ODValueNameSpace,GetEntry)
- (this,ev,key,value);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODValueNameSpace,ODValueNameSpace,GetEntry)
- (this,ev,key,value);
- #endif
- }
-
- /* method: CreateIterator */
- ODValueIterator* CreateIterator(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODValueIterator* __somResult =
- SOM_ResolveD(this,ODValueNameSpace,ODValueNameSpace,CreateIterator)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODValueNameSpace,ODValueNameSpace,CreateIterator)
- (this,ev);
- #endif
- }
-
- }; /* ODValueNameSpace */
-
-
-
- #endif /* SOM_ODValueNameSpace_xh */
-